package org.idontknow.prey.species;

import java.lang.Comparable;

abstract public class Species implements Comparable<Species>{

  private String name;
  protected int weight;

  private Species() {}

  protected Species(String _name) {
    name = _name;
  }

  public String getName() {
    return name;
  }

  public int getWeight() {
    return weight;
  }

  public final int compareTo(Species another) {
    return this.getName().compareTo(another.getName());
  }
}
